import PageTools from '@/components/PageTools'
import UploadImg from '@/components/UploadImg'
import store from '@/store'
import lang from './Lang'
import ScreenFull from './ScreenFull'

const allow = {
  inserted(el, binding) {
    // console.log(el, binding.value, 9999999999999)
    // console.log(store.getters.points)
    console.log(store.getters.points.includes(binding.value))
    store.getters.points.includes(binding.value) || el.parentNode.removeChild(el)
  }
}

export default {
  install(Vue) {
    Vue.component('PageTools', PageTools)
    Vue.component('UploadImg', UploadImg)
    Vue.component('UploadImg', UploadImg)
    Vue.component('lang', lang)
    Vue.component('ScreenFull', ScreenFull)
    Vue.directive('allow', allow)
  }
}
